#!/usr/bin/python
"""Based on http://pythonhosted.org/Pyro/6-eventserver.htm"""
from Pyro.EventService.Clients import Publisher

class QuotePublisher(Publisher):
    def __init__(self):
        Publisher.__init__(self)

    def PublishQuote(self, obj):
        """Sends Quote information to the Event Server.
        
        Arguments:
          obj -- a ????? object
        
        """
        
        self.publish("Quote", obj)
    
sp = QuotePublisher()
sp.PublishQuote(("SUN", 22.44))
print "Published OK, but I don't know if the other side has heard it"


